package com.softer.wxzj.mapper;

import com.softer.wxzj.mapper.base.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * RoleMapper class
 * @author zcz
 * @date 2019/1/16
 */
@Mapper
@Repository
public interface FlowInstanceMapper extends BaseMapper {
    /**
     * 根据流程类型和角色查询下一个角色
     * @param businessId
     * @param flowType
     * @return
     */
    String getNextRoleCodeByTypeAndStep(@Param("businessId") String businessId,@Param("flowType") String flowType);
    /**
     * 根据流程类型和角色查询前一个角色
     * @param businessId
     * @param flowType
     * @return
     */
    String getPreviousRoleCodeByTypeAndStep(@Param("businessId") String businessId,@Param("flowType") String flowType);
}
